﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Fastyou.DesignPattern.FactoryMethod
{
    public class CommentQuestion:Question
    {
        public CommentQuestion(int type)
        {
            this.QuestionType = type;
        }
        string _dis = string.Empty;
        public override string Display
        {
            get
            {
                return "Comment question";
            }
            set
            {
                _dis = value;
            }
        }

        int _type = 0;
        public override int QuestionType
        {
            get
            {
                return 2;
            }
            set
            {
                _type = value;
            }
        }
    }
}
